import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
//import java.awt.BasicStroke;

public class myMazeJP extends JPanel 
{
    //    public myMazeJP ()
    //    {
    //        super();
    //    }
    //    
    //    public myMazeJP (boolean isDoubleBuffered)
    //    {
    //        super(isDoubleBuffered);
    //    }
    //    
    //    public myMazeJP (LayoutManager layout)
    //    {
    //        super(layout);
    //    }
    //    
    public myMazeJP (LayoutManager layout, boolean isDoubleBuffered)
    {
        super(layout, isDoubleBuffered);
    }
    
    @Override                           
    protected void paintComponent( Graphics g )
    {
        Graphics2D g2 = (Graphics2D) g;
        
        super.paintComponent( g2 );
        g2.setStroke(new BasicStroke(4, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL));
        g2.setColor(Color.BLACK);
        g2.drawLine( 6, 6, 34, 6);
        g2.drawLine( 6, 6, 6, 34);
        g2.drawLine( 34, 6, 34, 34);
        g2.drawLine( 6, 34, 34, 34);
        g2.setStroke(new BasicStroke(0, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL));
        g2.setColor(Color.RED);
        g2.fillRect(12,12,16,16);
//        g2.setColor(Color.LIGHT_GRAY);
//        g2.fillRect(12,12,16,16);
        g2.setColor(Color.RED);
        g2.fillRect(44,12,16,16); 
    }
    
    
}
